const formValidation ={
    // 手机号验证
    mobile: (value) => {
        // console.log(value)
        const reg1 = /^1(3|4|5|7|8)\d{9}$/;
        if(!reg1.test(value)) {
           return false
        }else {
            return true
        }
    },
    
    password:(value)=>{
        // console.log(value)
        const reg = /^[a-zA-Z0-9]{6,10}$/
        if(!reg.test(value)) {
           return false
        }else {
            return true
        }
    },
    surepassword:(surepwd,keys)=>{
    //   console.log(surepwd)
    //   console.log(key)
      var str=surepwd
      var str2=keys
        if(str===str2){
            return true
        }else{
            return false
        }
    },
    SureToken:()=>{
        var str=JSON.parse(localStorage.getItem("islogin"))
        console.log(str)
    }

  }
export default formValidation

